package com.yuwei.module_repair.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.AddRepairEntity
import com.bw.lib_common.entity.RepairEntity
import com.bw.lib_common.entity.RepairEntityItem
import com.bw.lib_common.entity.Res
import retrofit2.http.*
/**
 * 智慧园区-01-设备管理V1.1-20250507
 */
interface RepairApiService:BaseApiServer {
    @GET("/api/repair-orders")
    suspend fun getRepairOrders(): Res<RepairEntity>
    @POST("/api/repair-orders")
    suspend fun addRepairOrder(@Body addRepairEntity: AddRepairEntity):Res<RepairEntityItem>
    @DELETE("/api/repair-orders/{id}")
    suspend fun deleteRepairOrder(@Path("id") id:Int): Res<Boolean>
    @GET("/api/repair-orders/order-number/{orderNumber}")
    suspend fun getRepairOrderByOrderNumber(@Path("orderNumber")orderNumber:String):Res<RepairEntityItem>
    @GET("/api/repair-orders/search")
    suspend fun getRepairOrderByName(@Query("repairName")repairName:String):Res<RepairEntity>
}